//
//  NSDate+CLCalendar.m
//  CLExtension
//
//  Created by 廖朝瑞 on 2019/11/23.
//  Copyright © 2019 Charlie. All rights reserved.
//

#import "NSDate+CLCalendar.h"

@implementation NSDate (CLCalendar)

+ (NSCalendar*)cl_Calendar {
    static NSCalendar *clCalendar;
    @synchronized (self) {
        static dispatch_once_t onceToken;
        dispatch_once(&onceToken, ^{
            clCalendar = [[NSCalendar alloc] initWithCalendarIdentifier:NSCalendarIdentifierGregorian];
        });
        return clCalendar;
    }
}

@end
